import ajax from "../request.js";
// 企业认证
export const certification = (params = {})=>{
	return ajax({
		url:"/api/enterprise",
		method:"post",
		params,
	})
}
// 获取企业认证结果
export const getStatus = (userId,params = {})=>{
	return ajax({
		url:`/api/enterprise/byUser/${userId}`,
		method:"get",
		params
	})
}
// 发布招募
export const publish = (params)=>{
	return ajax({
		url:"/api/moveAbout",
		method:"post",
		params,
	})
}
// 通过id获取发布的招募信息
export const getDetail = (id, params = {})=>{
	return ajax({
		url:`/api/moveAbout/${id}`,
		method:"get",
		params
	})
}
// 获取报名信息
export const getEnrollInfo = (params = {})=>{
	return ajax({
		url:"/api/enroll",
		method:"get",
		params
	})
}
// 修改报名信息
export const updateEnrollInfo = (id,params = {})=>{
	return ajax({
		url:`/api/enroll/${id}`,
		method:"post",
		params,
	})
}